home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17201 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  853 b 

  1. Path: news.lei.net!Psidmvl
  2. From: anomoous@penet.fi
  3. Newsgroups: comp.lang.c++
  4. Subject: Newbie question
  5. Date: 14 Apr 1996 05:11:01 GMT
  6. Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net
  7. Message-ID: <4kq1d5$253@ginger.lei.net>
  8. NNTP-Posting-Host: mothra16.pixi.com
  9.  
  10. I just started a C++ class in school, and I was writing my first project.  I 
  11. have to include a char, double, int, and a string.  The program compiled just 
  12. fine, but when I run the program I get a fatal error that says I have a float 
  13. overflow.  I know I must be missing something extremely basic, but the help 
  14. files were no help.  The input was digit with two decimal places.  I used the 
  15. following statement to define the precision.
  16. cout.setf(ios::showpoint);
  17. cout.precision (4);
  18.  
  19. Any help would be appreciated.
  20.  
  21. Everyone was once a Newbie........I think.
  22.